* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

li, a {
  list-style: none;
  text-decoration: none;
  color: black;
}

input {
  border: none;
  outline: none;
}

body {
  background-color: #f1f1f1;
  font-size: 3vw;
}

a, span, p {
  font-size: 1em;
  color: #9c9c9c;
}

h4 {
  font-size: 1.4em;
  font-weight: 500;
}

img {
  width: 100%;
  display: block;
}

.show_nav {
  color: rgb(11, 197, 64);
  border-bottom: 2px solid rgb(11, 197, 64);
}

.show1_nav {
  & .iconfont, p {
    color: #0dc346;
  }
}

.show_span {
  background-color: rgba(252, 252, 252, 0.5);
  color: rgb(252, 252, 252);
}


/*header*/
header {
  width: 100%;
  position: sticky;
  top: 0;

  & > div:first-child {
    & > p {
      color: rgba(255, 255, 255, 0.87);
      font-size: 1.5em;
    }

    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px;
    background: #0ec441;

    & span {
      padding: 5px 20px;
      background-color: rgba(252, 252, 252, 0.3);
      color: rgba(252, 252, 252, 0.6);
      font-size: 14px;

      &:first-child {
        border-top-left-radius: 25px;
        border-bottom-left-radius: 25px;
      }

      &:last-child {
        border-top-right-radius: 25px;
        border-bottom-right-radius: 25px;
      }

    }
  }
}

//导航
nav > .nav {
  display: flex;
  justify-content: center;
  background-color: rgba(255, 255, 255, 0.55);

  & li {
    flex: 1;
    padding: 15px;
    text-align: center;
    color: rgb(104, 103, 101);
    font-size: 1em;
  }
}

//搜索
.seek {
  padding: 2vw 2vw;
  background: #fff;
  display: flex;
  justify-content: space-between;

  & label {
    margin-right: 2vw;
    border: 1px solid #666;
    border-radius: 1vw;
    flex: 1;
    padding: 1vw 2vw;

    & input {
      width: 100%;
      height: 100%;
      border: none;
      outline: none;
    }
  }

  button {
    padding: 1vw 3vw;
    background-color: #0dc541;
    border: none;
    color: white;
    border-radius: 1vw;
  }
}

//section
section {
  width: 100%;
  background-color: white;
}

//用户
.user {

  display: flex;
  justify-content: space-between;

  &:first-child {
    padding: 15px;
  }

  & div:first-child {
    width: 12vw;
    height: 12vw;
    border: 2px solid #eee;
    border-radius: 100%;
    background-image: url("../images/img2.jpg");
    background-size: cover;
    overflow: hidden;
  }

  & div:nth-child(2) {
    flex: 1;
    margin-left: 2vw;
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;


  }

  & div:last-child {
    width: 17vw;
    //关注
    & button {
      padding: 0.5vw 2vw;
      background-color: #0fc343;
      border: none;
      border-radius: 1vw;
      color: white;
    }

    & button.to_btn {
      background-color: #e5e5e5;
    }
  }
}

//footer
footer {
  width: 100%;
  background-color: #ffffff;
  position: fixed;
  bottom: 0;
  border-top: 1px solid #eee;

  & ul {
    display: flex;

    & li {
      flex: 1;
      padding: 5px 0;

      & div {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
      }

      & .iconfont {
        font-size: 2em;
        color: #c9c9c9;
      }

      & p {
        font-size: 1em;
      }
    }
  }

  .icon-xiangji {
    position: absolute;
    bottom: 0;
    border: 2px solid #c9c9c9;
    border-radius: 100%;
    padding: 3vw;
    background-color: #ffffff;
    font-size: 4em !important;
  }

}

//login
.login_form {
  display: flex;
  flex-direction: column;
  flex: 1;
  margin: 4vw;

  & label {
    margin-top: 4vw;

    & input {
      width: 100%;
      border-bottom: 1px solid #999;
      padding: 2vw 0;
      font-size: 1.4em;
    }
  }

  & p {
    margin: 4vw 0;

    a {
      color: #a3f0b3;
      text-decoration: underline;
    }
  }

  & > input {
    font-size: 1.4em;
    padding: 3vw;
    color: white;
    background-color: #0ec441;
  }
}
